import { createStore } from "vuex";

export default createStore({
  state: {
    list: [],
  },
  getters: {},
  mutations: {
    add(state, obj) {
      state.list.push(obj);
    },
    change(state, obj) {
      let { status, i } = obj;
      state.list[i].status = status;
    },
  },
  actions: {},
  modules: {},
});
